package cloud.code.serverOne.web.dao;

import cloud.code.baseProject.entity.GenericBaseDao;
import cloud.code.serverOne.web.entity.TRoleEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 角色
 * Created by zhanghaichao on 2019/12/22.
 */
@Mapper
public interface TRoleDao extends GenericBaseDao<TRoleEntity> {

    /**
     * 根据用户id获取角色列表
     * @param userId
     * @return
     */
    List<TRoleEntity> getRoleListByUserId(String userId);

}
